﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BusinessCardList.ascx.cs" Inherits="ShopOnline.Controls.BusinessCardList" %>


<style>
    .deleteBC
    {
        position:relative;
        left: 355px;
        top:-2px;
    }
</style>

<script type="text/javascript">
    function onMouseOver(div) {
        $(div).find('.deleteBC').show();
    }

    function onMouseOut(div) {
        $(div).find('.deleteBC').hide();
    }
</script>

<asp:Repeater ID="rpt" runat="server"  >
    <ItemTemplate>
        <div class='bcContainer' >
             <asp:LinkButton class='deleteBC' Visible='<%# !ReadOnly %>' OnClientClick="return confirm('Are you sure to delete this business card?');" ID="btnDelete" ToolTip="Delete Business Card" ItemID='<%# Eval("ID") %>' runat="server" OnClick="btnDelete_OnClick">
                        <img src="../../images/delete_icon.gif" />
             </asp:LinkButton>
            <div class='bcContainerFrontSide' ItemID='<%# Eval("ID") %>' style=''>
                <%# Eval("FrontSide") %>
            </div>
            <div class='bcContainerBackSide' ItemID='<%# Eval("ID") %>' >
                <%# Eval("BackSide") %>
            </div>

           
        </div>
    </ItemTemplate>
</asp:Repeater>
